package com.wn.cloud.consumer.config;

import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

/**
 * @FileName: RestTemplateConfig
 * @Description: TODO
 * @Author: MaWenHao
 * @Created: 2020/3/8 - 15:32
 * @Version: V1.0
 * @Company: 东方微银科技（北京）有限公司
 */
@Configuration
public class RestTemplateConfig {

    @Bean
    @LoadBalanced
    public RestTemplate restTemplate() {
        return new RestTemplate();
    }
}
